
MAIN = main.cpp

TEST_MAIN = unit_test_main.cpp

SRC = talk_protocol.cpp \
	talk_server.cpp \
	tcp_socket.cpp \
	protocol_engine.cpp \
	tinyxml2.cpp \
	xml_file.cpp
#	fopen.cpp \
#	data_file.cpp \
#	storage_product.cpp \
#	server_tcp.cpp

FLAGS = -lpthread -g

BIN = server

all:
	$(CXX) $(MAIN) $(SRC) $(FLAGS) -o $(BIN)

test:
	$(CXX) $(TEST_MAIN) $(SRC) $(FLAGS) -lgtest -o $(BIN)

clean:
	$(RM) *.o $(BIN)

.PHONY: clean

